<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="format-detection" content="telephone=no">
    <meta name="viewport" content="minimal-ui,width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <title>订单详情-{$webseting.web_title}</title>
    <link href="__PUBLIC__/wap/css/rest.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/user.css"  rel="stylesheet">
    <link href="__PUBLIC__/wap/css/detailedTracking.css"  rel="stylesheet">
</head>
<body id="body">
    <header id="header" class="u-header clearfix">
        <div class="u-hd-left f-left">
            <a href="javascript:history.go(-1);" class="J_backToPrev"><span class="u-icon-px i-hd-back"></span></a>
        </div>
        <div class="u-hd-tit"><span>订单详情</span></div>
    </header>
    <div class="fwrap">
        <section class="order-con">
            <ul class="order-list">
                <li>
                    <div class="order-box">
                        <div class="order-width">
                            <p>订单编号：{$data.pay_sn}</p>
                            <p>订单金额：<s style="text-decoration: line-through;">￥{$data.goods_amount}</s>/￥{$data.order_amount}</p>
                            <p>订单日期：{$data.add_time|date="Y-m-d H:i:s",###}</p>
                             <p>订单状态：{$order_state[$data['order_state']]}</p>
                            
                        </div>

                         <div class="order-width">
                             <if condition="$data['order_state'] gt 10">
                            <p>付款时间：{$data.payment_time|date="Y-m-d H:i:s",###}</p>
                            </if>
                              <if condition="$data['order_state'] gt 20">
                            <p>完成时间：{$data.finnshed_time|date="Y-m-d H:i:s",###}</p>
                            </if>
                           <if condition="$data['order_state'] lt 10">
                            <p>是否退款： {$refund_state[$data['refund_state']]}</p>
                                 <if condition="$data['order_state'] gt 0">
                                <p>退款金额：{$data.refund_amount}</p>
                                </if>
                            </if>
                        </div>
                      <!--  <div class="pay-button">
                            <a class="pay-order" href="#">订单跟踪</a>
                            <a class="pay-order" href="#">满意度评价</a>
                        </div>-->
                    </div>
                </li>
                <li>
                    <div class="order-box">
                        <ul class="book-list">
                           <volist name="order_goods" id="vo">
                            <li class="border-bottom">
                                <a href="{:U('Wap/Group/goods_detail',array('id'=>$vo['goods_id']))}">
                                    <div class="order-msg">
                                        <img src="{:U('wap/index/get_thumbs',array('auto'=>64))}?img={$vo.goods_image}" class="img_ware">
                                        <div class="order-msg">
                                            <p class="title"> {$vo.goods_name}</p>
                                            <p class="price"> 
                                                ¥{$vo.goods_pay_price}/<s style="text-decoration: line-through;">¥{$vo.goods_price}</s>
                                            <span></span></p>
                                            <p class="order-data">X{$vo.goods_num}</p>
                                        </div>
                                    </div>
                                </a>
                            </li>
                       </volist>

                        </ul>
                    </div>
                </li>
                
                <li>
                    <div class="order-box">
                        <div class="order-width">
                            <p class="border-bottom usr-name">付款方式:<span class="fr">在线支付</span></p>
                            <p>商品金额:<span class="fr red">￥{$data.order_amount}/<s style="text-decoration: line-through;">￥{$data.goods_amount}</s></span></p>
                            <if condition="$data['discount_consume'] lt 1 && $data['discount_consume'] gt 0">
                            <p>折扣:<span class="fr red">{$data['discount_consume']*10}折</span></p>
                             </if>
                            <!-- <p class="border-bottom">运费:<span class="fr red">￥0.00</span></p> -->
                            <p>应支付金额:<span class="fr red">￥{$data.order_amount}</span></p>
                        </div>
                    </div>
                </li>
                    <if condition="$data['order_state'] eq 10">
                 <li>
                    <div class="order-box">
                        <div class="order-width">
                             <a href="{:U('Wap/Order/order_pay')}?pay_sn={$data.pay_sn}" onclick="javascript:void(0);" data-tpa="GOTO_CHECKOUT" class="new-abtn-type new-mg-tb30 phone_log_btn">
                              去付款
                               </a>
                        </div>
                    </div>
                </li>
                </if>
                <!-- <li>
                    <div class="order-box">
                        <div class="order-width">
                            <p class="border-bottom usr-name">配送信息<span class="fr"></span></p>
                            <p>配送方式: 普通快递</p>
                            <p>送货时间: 只工作日送货（双休日、假日不用送）</p>
                            <p>配送时间: </p>
                        </div>
                    </div>
                </li> -->
            </ul>
        </section>
    </div>

</body>
</html>